import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      appBar: AppBar(
        title: const Text("Wrap Widget Demo"),
      ),
      body: const WrapWidget(),
    ),
  ));
}

class WrapWidget extends StatelessWidget {
  const WrapWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    // Column Row超出页面会抛出异常，使用流式布局Wrap、Flow则不会
    return Wrap(
      children: <Widget>[
        Text("xxx" * 1000),
      ],
    );
  }
}
